﻿<Controls:SinacorWindow x:Class="Sinacor.UI.Bovespa.ManutencaoOrdens.View.SmartClient.CasamentoAutomatico"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    WindowState="Normal" 
	Width="650px"
	Height="360px"
    Title="{DynamicResource Bovespa.ManutencaoOrdens.Label.Casamentos}"
    xmlns:Local="clr-namespace:Sinacor.UI.Bovespa.ManutencaoOrdens.View.SmartClient"
    xmlns:Model="clr-namespace:Sinacor.UI.Bovespa.ManutencaoOrdens.Model;assembly=Sinacor.UI.Bovespa.ManutencaoOrdens.Model"
    xmlns:System="clr-namespace:System;assembly=mscorlib"
    xmlns:Controls="clr-namespace:Sinacor.Infra.UI.Controls.SmartClient;assembly=Sinacor.Infra.UI.Controls"
    xmlns:Validation="clr-namespace:Sinacor.Infra.UI.Controls.SmartClient.Validation;assembly=Sinacor.Infra.UI.Controls"
    xmlns:Edit="clr-namespace:Sinacor.Infra.UI.Controls.SmartClient.Edit;assembly=Sinacor.Infra.UI.Controls"
	ModuleId="ORD"
    ModulePlus="False">

    <Controls:SinacorExpanderContainer x:Name="ExpanderContainer"
                                       VerticalAlignment="Stretch">

        <Controls:SinacorExpander Header="{DynamicResource Bovespa.ManutencaoOrdens.Label.Casamentos}"
                                  IsExpanded="True"
								  AllowExpand="False" >
            <Grid>
                <StackPanel>
                    <Controls:SinacorGroupBox HorizontalAlignment="Stretch"
                                          	  VerticalAlignment="Top"
											  Margin="0,0,0,0"
											  Width="Auto"
											  Height="220">
                        <Grid>
                            <Controls:SinacorLabel HorizontalAlignment="Left"
												   Content="{DynamicResource Bovespa.ManutencaoOrdens.Label.Pregao}"
												   Width="60"/>
                            <Controls:SinacorComboBox HorizontalAlignment="Left"
													  VerticalAlignment="Top"
													  IsSynchronizedWithCurrentItem="True"
													  Margin="65,0,0,0"
													  Width="100"
													  TabIndex="0"
                                                      ItemsSource="{Binding Calendario}"
                                                      SelectedValuePath="DataFormatada" 
                                                      DisplayMemberPath="DataFormatada" 
                                                      SelectedValue="{Binding DadosExecucao.DataPregao}"
                                                      x:Name="CmbDataMovimento"
                                                      IsRequired="True">
                            </Controls:SinacorComboBox>
                            <Controls:SinacorRadioButton VerticalAlignment="Top"
                    									 Content="{DynamicResource Bovespa.ManutencaoOrdens.Label.CasamentoAutomaticoPreBoleto}"
														 Margin="20,40,0,0"
														 GroupName="opcoes"
														 TabIndex="1"
														 HorizontalAlignment="Left"
														 Width="300" IsChecked="True"
                                                         x:Name="ChkCasamentoAutomaticoPreBoleto"
                                                         Checked="ChkCasamentoAutomaticoPreBoleto_Checked"/>
                            <Controls:SinacorRadioButton VerticalAlignment="Top"
                    									 Content="{DynamicResource Bovespa.ManutencaoOrdens.Label.CasamentoAutomatico}"
														 Margin="20,65,0,0"
														 GroupName="opcoes"
														 TabIndex="2"
														 HorizontalAlignment="Left"
														 Width="300"
                                                         x:Name="ChkCasamentoAutomatico"
                                                         Checked="ChkCasamentoAutomatico_Checked"/>
                            <Controls:SinacorRadioButton Content="{DynamicResource Bovespa.ManutencaoOrdens.Label.RecasamentoAutomatico}"
                    									 Margin="20,90,0,0"
														 GroupName="opcoes"
														 TabIndex="3"
														 Width="300"
														 VerticalAlignment="Top"
														 HorizontalAlignment="Left"
                                                         x:Name="ChkRecasamentoAutomatico"
                                                         Checked="ChkRecasamentoAutomatico_Checked"/>

                            <!--INICIO DAS GRIDS DE TEXTOS-->
                            <Grid x:Name="GrdCasamentoAutomaticoPreBoleto" VerticalAlignment="Top" Margin="20,120,0,0" Visibility="Visible">
                                <!-- Texto referente a opcao 1 de checkbox -->
                                <Controls:SinacorLabel  Margin="0,0,0,0"
												   		x:Name="LblCasamentoAutomaticoPreBoleto"
                                                   		VerticalAlignment="Top"
														Width="560"
														Height="20"
														Content="{DynamicResource Bovespa.ManutencaoOrdens.Label.Instrucao1}"
														HorizontalAlignment="Left"
														Visibility="Visible"
														HorizontalContentAlignment="Left"/>
                            </Grid>
                            <Grid x:Name="GrdCasamentoAutomatico" VerticalAlignment="Top" Margin="20,120,0,0" Visibility="Hidden">
                                <!-- Textos referente a opcao 2 de checkbox -->
                                <Controls:SinacorLabel Margin="0,0,0,0"
												   x:Name="LblCasamentoAutomatico1"
                                                   VerticalAlignment="Top"
                                                   Width="560"
                                                   Height="20"
                                                   Content="{DynamicResource Bovespa.ManutencaoOrdens.Label.Instrucao2}"
                                                   HorizontalAlignment="Left"
												   Visibility="Visible"
												   HorizontalContentAlignment="Left"/>

                                <Controls:SinacorLabel Margin="0,15,0,0"
												   x:Name="LblCasamentoAutomatico2"
                                                   VerticalAlignment="Top"
                                                   Width="560"
                                                   Height="20"
                                                   Content="{DynamicResource Bovespa.ManutencaoOrdens.Label.Instrucao2a}"
                                                   HorizontalAlignment="Left"
												   Visibility="Visible"
												   HorizontalContentAlignment="Left"/>

                                <Controls:SinacorLabel Margin="0,30,0,0"
												   x:Name="LblCasamentoAutomatico3"
                                                   VerticalAlignment="Top"
                                                   Width="560"
                                                   Height="20"
                                                   Content="{DynamicResource Bovespa.ManutencaoOrdens.Label.Instrucao2b}"
                                                   HorizontalAlignment="Left"
												   Visibility="Visible"
												   HorizontalContentAlignment="Left"/>

                                <Controls:SinacorLabel Margin="0,45,0,0"
												   x:Name="LblCasamentoAutomatico4"
                                                   VerticalAlignment="Top"
                                                   Width="560"
                                                   Height="20"
                                                   Content="{DynamicResource Bovespa.ManutencaoOrdens.Label.Instrucao2c}"
                                                   HorizontalAlignment="Left"
												   Visibility="Visible"
												   HorizontalContentAlignment="Left"/>
                            </Grid>
                            <Grid x:Name="GrdRecasamentoAutomatico" VerticalAlignment="Top" Margin="20,120,0,0" Visibility="Collapsed">
                                <!-- Textos referente a opcao 3 de checkbox -->
                                <Controls:SinacorLabel Margin="0,0,0,0"
												   x:Name="LblReCasamentoAutomatico1"
                                                   VerticalAlignment="Top"
                                                   Width="560"
                                                   Height="20"
                                                   Content="{DynamicResource Bovespa.ManutencaoOrdens.Label.Instrucao2}"
                                                   HorizontalAlignment="Left"
												   Visibility="Visible"
												   HorizontalContentAlignment="Left"/>

                                <Controls:SinacorLabel Margin="0,15,0,0"
												   x:Name="LblReCasamentoAutomatico2"
                                                   VerticalAlignment="Top"
                                                   Width="560"
                                                   Height="20"
                                                   Content="{DynamicResource Bovespa.ManutencaoOrdens.Label.Instrucao3a}"
                                                   HorizontalAlignment="Left"
												   Visibility="Visible"
												   HorizontalContentAlignment="Left"/>

                                <Controls:SinacorLabel Margin="0,30,0,0"
												   x:Name="LblReCasamentoAutomatico3"
                                                   VerticalAlignment="Top"
                                                   Width="560"
                                                   Height="20"
                                                   Content="{DynamicResource Bovespa.ManutencaoOrdens.Label.Instrucao3b}"
                                                   HorizontalAlignment="Left"
												   Visibility="Visible"
												   HorizontalContentAlignment="Left"/>

                                <Controls:SinacorLabel Margin="0,45,0,0"
												   x:Name="LblReCasamentoAutomatico4"
                                                   VerticalAlignment="Top"
                                                   Width="560"
                                                   Height="20"
                                                   Content="{DynamicResource Bovespa.ManutencaoOrdens.Label.Instrucao3c}"
                                                   HorizontalAlignment="Left"
												   Visibility="Visible"
												   HorizontalContentAlignment="Left"/>

                                <Controls:SinacorLabel Margin="0,60,0,0"
												   x:Name="LblReCasamentoAutomatico5"
                                                   VerticalAlignment="Top"
                                                   Width="560"
                                                   Height="20"
                                                   Content="{DynamicResource Bovespa.ManutencaoOrdens.Label.Instrucao3d}"
                                                   HorizontalAlignment="Left"
												   Visibility="Visible"
												   HorizontalContentAlignment="Left"/>
                            </Grid>
                            <!-- FIM DAS GRIDS DE TEXTOS -->
                        </Grid>
                    </Controls:SinacorGroupBox>
                    <StackPanel x:Name="GridBotoes"
								Height="Auto"
								Margin="0,10,3,0" 
								Orientation="Horizontal"
								HorizontalAlignment="Right">
                        <Controls:SinacorButton Content="{DynamicResource Bovespa.ManutencaoOrdens.Label.Executar}"
												Width="85"
												TabIndex="4"
												HorizontalAlignment="Right"
												VerticalAlignment="Top"
												Margin="0,0,5,0"
                                                x:Name="BtnExecutar"
                                                OnBufferedClick="BtnExecutar_OnBufferedClick"
                                                CausesValidation="True"/>
                    </StackPanel>
                </StackPanel>
            </Grid>
        </Controls:SinacorExpander>

    </Controls:SinacorExpanderContainer>
</Controls:SinacorWindow>